diff options
Diffstat (limited to 'src/app/(main)/api/comments/[...comment]/route.ts')
| -rw-r--r-- | src/app/(main)/api/comments/[...comment]/route.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/(main)/api/comments/[...comment]/route.ts b/src/app/(main)/api/comments/[...comment]/route.ts new file mode 100644 index 0000000..1da87db --- /dev/null +++ b/src/app/(main)/api/comments/[...comment]/route.ts @@ -0,0 +1,9 @@ +import { auth, storage } from '@/server/comments/config'; +import { NextComment } from '@fuma-comment/server/next'; + +export const { GET, DELETE, PATCH, POST } = NextComment({ + // role: 'database', todo use role in auth + mention: { enabled: true }, + auth: auth, + storage: storage, +}); |
